///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Oct  8 2012)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////

#include "myframe.h"

///////////////////////////////////////////////////////////////////////////

MyFrame::MyFrame( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxFrame( parent, id, title, pos, size, style )
{
	this->SetSizeHints( wxSize( 630,380 ), wxDefaultSize );
	
	wxBoxSizer* BaseSizer;
	BaseSizer = new wxBoxSizer( wxHORIZONTAL );
	
	m_BasePanel = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_BasePanel->SetForegroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHTTEXT ) );
	m_BasePanel->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHTTEXT ) );
	
	wxBoxSizer* MainSizer;
	MainSizer = new wxBoxSizer( wxHORIZONTAL );
	
	m_panLeft = new wxPanel( m_BasePanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_panLeft->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHTTEXT ) );
	
	wxBoxSizer* LeftSizer;
	LeftSizer = new wxBoxSizer( wxVERTICAL );
	
	m_panLeftFront = new wxPanel( m_panLeft, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxStaticBoxSizer* LeftDisplaySizer;
	LeftDisplaySizer = new wxStaticBoxSizer( new wxStaticBox( m_panLeftFront, wxID_ANY, wxT("Display") ), wxVERTICAL );
	
	//m_panDisplay = new wxPanel( m_panLeftFront, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_panDisplay = new MyImagePanel(m_panLeftFront, wxDefaultPosition, wxDefaultSize);
	LeftDisplaySizer->Add( m_panDisplay, 1, wxEXPAND | wxALL, 5 );
	
	
	m_panLeftFront->SetSizer( LeftDisplaySizer );
	m_panLeftFront->Layout();
	LeftDisplaySizer->Fit( m_panLeftFront );
	LeftSizer->Add( m_panLeftFront, 1, wxEXPAND | wxALL, 2 );
	
	
	m_panLeft->SetSizer( LeftSizer );
	m_panLeft->Layout();
	LeftSizer->Fit( m_panLeft );
	MainSizer->Add( m_panLeft, 1, wxEXPAND | wxALL, 2 );
	
	m_panRight = new wxPanel( m_BasePanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxBoxSizer* RightSizer;
	RightSizer = new wxBoxSizer( wxVERTICAL );
	
	m_panRightFront1 = new wxPanel( m_panRight, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxStaticBoxSizer* RightCommSizer;
	RightCommSizer = new wxStaticBoxSizer( new wxStaticBox( m_panRightFront1, wxID_ANY, wxT("Communication Status") ), wxVERTICAL );
	
	m_panComm = new wxPanel( m_panRightFront1, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxGridSizer* rCommGridSizer;
	rCommGridSizer = new wxGridSizer( 0, 2, 0, 0 );
	
	m_staticText3 = new wxStaticText( m_panComm, wxID_ANY, wxT("Connection:"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText3->Wrap( -1 );
	rCommGridSizer->Add( m_staticText3, 0, wxALL, 5 );
	
	m_stxtConnStatus = new wxStaticText( m_panComm, wxID_ANY, wxT("Connected"), wxDefaultPosition, wxDefaultSize, 0 );
	m_stxtConnStatus->Wrap( -1 );
	rCommGridSizer->Add( m_stxtConnStatus, 0, wxALL, 5 );
	
	
	m_panComm->SetSizer( rCommGridSizer );
	m_panComm->Layout();
	rCommGridSizer->Fit( m_panComm );
	RightCommSizer->Add( m_panComm, 1, wxEXPAND | wxALL, 5 );
	
	
	m_panRightFront1->SetSizer( RightCommSizer );
	m_panRightFront1->Layout();
	RightCommSizer->Fit( m_panRightFront1 );
	RightSizer->Add( m_panRightFront1, 0, wxALL|wxEXPAND, 2 );
	
	m_panRightFront2 = new wxPanel( m_panRight, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxStaticBoxSizer* RightFlightSizer;
	RightFlightSizer = new wxStaticBoxSizer( new wxStaticBox( m_panRightFront2, wxID_ANY, wxT("Flight Status") ), wxVERTICAL );
	
	m_panFlight = new wxPanel( m_panRightFront2, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxGridSizer* rFlightGridSizer;
	rFlightGridSizer = new wxGridSizer( 6, 2, 0, 0 );
	
	m_staticText5 = new wxStaticText( m_panFlight, wxID_ANY, wxT("Latitude:"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText5->Wrap( -1 );
	rFlightGridSizer->Add( m_staticText5, 0, wxALL, 5 );
	
	m_stxtLatitude = new wxStaticText( m_panFlight, wxID_ANY, wxT("xx'xx'xx"), wxDefaultPosition, wxDefaultSize, 0 );
	m_stxtLatitude->Wrap( -1 );
	rFlightGridSizer->Add( m_stxtLatitude, 0, wxALL, 5 );
	
	m_staticText7 = new wxStaticText( m_panFlight, wxID_ANY, wxT("Longitude:"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText7->Wrap( -1 );
	rFlightGridSizer->Add( m_staticText7, 0, wxALL, 5 );
	
	m_stxtLongitude = new wxStaticText( m_panFlight, wxID_ANY, wxT("xx'xx'xx"), wxDefaultPosition, wxDefaultSize, 0 );
	m_stxtLongitude->Wrap( -1 );
	rFlightGridSizer->Add( m_stxtLongitude, 0, wxALL, 5 );
	
	m_staticText9 = new wxStaticText( m_panFlight, wxID_ANY, wxT("Altitude:"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText9->Wrap( -1 );
	rFlightGridSizer->Add( m_staticText9, 0, wxALL, 5 );
	
	m_stxtAltitude = new wxStaticText( m_panFlight, wxID_ANY, wxT("xx'xx'xx"), wxDefaultPosition, wxDefaultSize, 0 );
	m_stxtAltitude->Wrap( -1 );
	rFlightGridSizer->Add( m_stxtAltitude, 0, wxALL, 5 );
	
	m_staticText11 = new wxStaticText( m_panFlight, wxID_ANY, wxT("Pitch:"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText11->Wrap( -1 );
	rFlightGridSizer->Add( m_staticText11, 0, wxALL, 5 );
	
	m_stxtPitch = new wxStaticText( m_panFlight, wxID_ANY, wxT("xxx'"), wxDefaultPosition, wxDefaultSize, 0 );
	m_stxtPitch->Wrap( -1 );
	rFlightGridSizer->Add( m_stxtPitch, 0, wxALL, 5 );
	
	m_staticText13 = new wxStaticText( m_panFlight, wxID_ANY, wxT("Roll:"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText13->Wrap( -1 );
	rFlightGridSizer->Add( m_staticText13, 0, wxALL, 5 );
	
	m_stxtRoll = new wxStaticText( m_panFlight, wxID_ANY, wxT("xxx'"), wxDefaultPosition, wxDefaultSize, 0 );
	m_stxtRoll->Wrap( -1 );
	rFlightGridSizer->Add( m_stxtRoll, 0, wxALL, 5 );
	
	m_staticText15 = new wxStaticText( m_panFlight, wxID_ANY, wxT("Yaw:"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText15->Wrap( -1 );
	rFlightGridSizer->Add( m_staticText15, 0, wxALL, 5 );
	
	m_stxtYaw = new wxStaticText( m_panFlight, wxID_ANY, wxT("xxx'"), wxDefaultPosition, wxDefaultSize, 0 );
	m_stxtYaw->Wrap( -1 );
	rFlightGridSizer->Add( m_stxtYaw, 0, wxALL, 5 );
	
	
	m_panFlight->SetSizer( rFlightGridSizer );
	m_panFlight->Layout();
	rFlightGridSizer->Fit( m_panFlight );
	RightFlightSizer->Add( m_panFlight, 1, wxEXPAND | wxALL, 5 );
	
	
	m_panRightFront2->SetSizer( RightFlightSizer );
	m_panRightFront2->Layout();
	RightFlightSizer->Fit( m_panRightFront2 );
	RightSizer->Add( m_panRightFront2, 1, wxEXPAND | wxALL, 2 );
	
	m_panRightFront3 = new wxPanel( m_panRight, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxStaticBoxSizer* RightImgCtrlSizer;
	RightImgCtrlSizer = new wxStaticBoxSizer( new wxStaticBox( m_panRightFront3, wxID_ANY, wxT("Image Control") ), wxVERTICAL );
	
	m_panImgCtrl = new wxPanel( m_panRightFront3, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	RightImgCtrlSizer->Add( m_panImgCtrl, 1, wxEXPAND | wxALL, 5 );
	
	
	m_panRightFront3->SetSizer( RightImgCtrlSizer );
	m_panRightFront3->Layout();
	RightImgCtrlSizer->Fit( m_panRightFront3 );
	RightSizer->Add( m_panRightFront3, 1, wxEXPAND | wxALL, 2 );
	
	
	m_panRight->SetSizer( RightSizer );
	m_panRight->Layout();
	RightSizer->Fit( m_panRight );
	MainSizer->Add( m_panRight, 0, wxEXPAND | wxALL, 2 );
	
	
	m_BasePanel->SetSizer( MainSizer );
	m_BasePanel->Layout();
	MainSizer->Fit( m_BasePanel );
	BaseSizer->Add( m_BasePanel, 1, wxEXPAND | wxALL, 0 );
	
	
	this->SetSizer( BaseSizer );
	this->Layout();
	
	this->Centre( wxBOTH );
}

MyFrame::~MyFrame()
{
}

MyImagePanel* MyFrame::GetImagePanel()
{
	return m_panDisplay;
}
